﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using TIS.DAO;
using System.Web.UI.WebControls;

namespace TIS.Administrator.usercontrol
{
    public partial class user : System.Web.UI.UserControl
    {
        UserInfo _userInfo = new UserInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["user"] != null)
            {
                _userInfo = (UserInfo)Session["user"];
                ltlUser.Text = _userInfo.Username;
            }
        }

        protected void lbLogout_Click(object sender, EventArgs e)
        {
            Session["user"] = null;
            Response.Redirect("Login.aspx");
        }

    }
}